/**
 * 
 */
package com.roc.common;

import java.io.File;
import java.io.Serializable;
import java.util.List;

import com.roc.pojo.TPosInfo;
import com.roc.pojo.YjPosInfo;

/**
 * @author Ren PengFei
 * 
 */
public class Excel2007TermFileProcessor implements FileProcessor {

	@Override
	public List<YjPosInfo> process(File file) throws Exception {
		XxlsTerm x = new XxlsTerm();
		x.process(file);
		List<YjPosInfo> result = x.getTrans();
		x = null;
		return result;
	}

	@Override
	public List<? extends Serializable> processPsamCard(File file)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TPosInfo> ysbprocess(File file) throws Exception {
		XxlsYSBTerm x = new XxlsYSBTerm();
		x.process(file);
		List<TPosInfo> result = x.getTrans();
		x = null;
		return result;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.roc.trans.file.processor.FileProcessor#process(java.io.File)
	 
	@Override
	public List<Term> process(File file) throws Exception {
		XxlsTerm x = new XxlsTerm();
		x.process(file);
		List<Term> result = x.getTrans();
		x = null;
		return result;
	}

	@Override
	public List<? extends Serializable> processPsamCard(File file)
			throws Exception {
		XxlsPsamCardChange x=new XxlsPsamCardChange();
		x.process(file);
		List<PsamCardChange> result = x.getPsamCardChangeList();
		x = null;
		return result;
	}
*/
}
